<template>
  <el-header class="Myheader">原神祈愿查询系统</el-header>
  <el-main>

    <Myinput v-if="$route.meta.isInput"></Myinput>
    <router-view></router-view>
  </el-main>
</template>

<script>


import Myinput from "@/components/Myinput";
import {watch} from 'vue'
import {useRoute} from 'vue-router'
export default {
  name: 'App',
  setup(){
    let route = useRoute
    watch(route,()=>{
      console.log("路由为==",route)
    })
  },
  components: {
    Myinput
  },
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
body{
  width: 971px;
  height: 1076px;
  background: url("./assets/ganyu.jpg") no-repeat 40%/cover;
}
  .Myheader{
    color:#F77E5C;
    font-size: 19px;
  }
</style>
